package com.lwf;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import us.codecraft.webmagic.Spider;

//@Component
public class BootstrapRunner implements CommandLineRunner {
    @Autowired
    @Qualifier("iteyeEssenceSpider")
    private Spider iteyeEssenceSpider;
    /*    @Autowired
        @Qualifier("iteyeBokeSpider")
        private Spider iteyeBokeSpider;*/
    @Override
    public void run(String... strings) throws Exception {
        System.out.println("llllllllll");
        //iteyeEssenceSpider.run();
        //iteyeBokeSpider.run();
    }
}
